וַיְהִ֡י כִּרְאוֹת֩ שָׂרֵ֨י הָרֶ֜כֶב אֶת־יְהוֹשָׁפָ֗ט וְהֵ֤מָּה אָֽמְרוּ֙ אַ֣ךְ מֶֽלֶךְ־יִשְׂרָאֵ֣ל ה֔וּא וַיָּסֻ֥רוּ עָלָ֖יו לְהִלָּחֵ֑ם וַיִּזְעַ֖ק יְהוֹשָׁפָֽט׃
And it came to pass, when the captains of the chariots saw Jehoshaphat, that they said: ‘Surely it is the king of Israel’; and they turned aside to fight against him; and Jehoshaphat cried out.
Tosefta Sotah
[It is stated]: "And [King Ahaziah] died according to the word of God, which Elijah had spoken.... And Jehoram [his brother] reigned in his stead in the second year of Jehoram son of Jehoshaphat, king of Judah [for he did not have a son]" (2 Kings 1:17). Is it possible to say this? For was Jehoshaphat not king after him for five years (see 2 Kings 8:16)? Rather, as soon as Jehoshaphat king of Judah went with Ahab king of Israel to Ramot Gilead, a decree was instituted against Jehoshaphat to be killed, as it is said (1 Kings 22:32, JPS Tr.), " And when the chariot officers saw Jehoshaphat [whom they took for the king of Israel, they turned upon him to attack him, and Jehoshaphat cried out]." He was fit to be killed at that very moment; rather, it teaches that due to the merit of the cry that he cried out, the sentence was suspended for him seven years, and they were counted toward his son.